package com.tj.shopping.entity;

import java.io.Serializable;

/**
 * (Goods)实体类
 *  商品表
 * @author makejava
 * @since 2023-12-18 20:09:47
 */
public class Goods implements Serializable {
    private static final long serialVersionUID = 267442507855080318L;

    private Integer gno;//商品编号

    private String tname;//商品类型

    private String gname;//商品名称

    private Float gprice;//商品价格

    private String remark;//商品描述

    private String gpics;//商品图片
    private Carts carts;//购物车对象
    private Goodsdetail goodsdetail;//购物车详情对象


    private String temp01;

    private String temp02;


    public Integer getGno() {
        return gno;
    }

    public void setGno(Integer gno) {
        this.gno = gno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Float getGprice() {
        return gprice;
    }

    public void setGprice(Float gprice) {
        this.gprice = gprice;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGpics() {
        return gpics;
    }

    public void setGpics(String gpics) {
        this.gpics = gpics;
    }

    public String getTemp01() {
        return temp01;
    }

    public void setTemp01(String temp01) {
        this.temp01 = temp01;
    }

    public String getTemp02() {
        return temp02;
    }

    public void setTemp02(String temp02) {
        this.temp02 = temp02;
    }


    public Goods() {
    }

    public Carts getCarts() {
        return carts;
    }

    public void setCarts(Carts carts) {
        this.carts = carts;
    }

    public Goodsdetail getGoodsdetail() {
        return goodsdetail;
    }

    public void setGoodsdetail(Goodsdetail goodsdetail) {
        this.goodsdetail = goodsdetail;
    }

    public Goods(Integer gno, String tname, String gname, Float gprice,
                 String remark, String gpics, Carts carts,
                 Goodsdetail goodsdetail, String temp01, String temp02) {
        this.gno = gno;
        this.tname = tname;
        this.gname = gname;
        this.gprice = gprice;
        this.remark = remark;
        this.gpics = gpics;
        this.carts = carts;
        this.goodsdetail = goodsdetail;
        this.temp01 = temp01;
        this.temp02 = temp02;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gno=" + gno +
                ", tname='" + tname + '\'' +
                ", gname='" + gname + '\'' +
                ", gprice=" + gprice +
                ", remark='" + remark + '\'' +
                ", gpics='" + gpics + '\'' +
                ", carts=" + carts +
                ", goodsdetail=" + goodsdetail +
                ", temp01='" + temp01 + '\'' +
                ", temp02='" + temp02 + '\'' +
                '}';
    }
}

